
#include "GrassyLand.h"

bool GrassyLand::init(){

	if(SDL_Init(SDL_INIT_EVERYTHING) < 0)
		return false;

	if(TTF_Init() < 0)
		return false;

	if((displaySurface = SDL_SetVideoMode(WND_WIDTH, WND_HEIGHT, COLOR_DEPTH, SDL_HWSURFACE | SDL_DOUBLEBUF)) == NULL)
		return false;

	if(!world.init("maps\\testmap"))
		return false;

	SDL_EnableKeyRepeat(300, 60);

	return true;
}